home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / gfx / 3d / irit50src.lha / irit5 / include / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-22  |  936 b   |  35 lines

  1. /*****************************************************************************
  2. *   General definitions for the configuration file reading routines         *
  3. *                                         *
  4. * Written by:  Gershon Elber                   Ver 0.2, Jan. 1989    *
  5. *****************************************************************************/
  6.  
  7. #ifndef CONFIG_H                       /* Defined Only once. */
  8. #define CONFIG_H
  9.  
  10. #define    SU_BOOLEAN_TYPE    1
  11. #define SU_INTEGER_TYPE    2
  12. #define SU_REAL_TYPE    3
  13. #define SU_STRING_TYPE    4
  14.  
  15. typedef struct ConfigStruct {
  16.     char *VarName;
  17.     char *SomeInfo;
  18.     VoidPtr VarData;
  19.     int   VarType;
  20. } ConfigStruct;
  21.  
  22. #if defined(__cplusplus) || defined(c_plusplus)
  23. extern "C" {
  24. #endif
  25.  
  26. /* And finally the prototype of the configuration routines: */
  27. void Config(char *PrgmName, ConfigStruct *SetUp, int NumVar);
  28. void ConfigPrint(ConfigStruct *SetUp, int NumVar);
  29.  
  30. #if defined(__cplusplus) || defined(c_plusplus)
  31. }
  32. #endif
  33.  
  34. #endif    /* CONFIG_H */
  35.